package com.bdan.t382.dao.imp;

import com.bdan.t382.dao.PetDao;
import com.bdan.t382.entity.Pet;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;
//@Component("petDao")
 @Repository("petDaoOracle")
public class PetDaoOracleImpl implements PetDao {
    @Override
    public int insert(Pet pet) {
        //此处模拟插入数据，简化操作说明问题
        System.out.println("将宠物“"+pet.getName()+"”插入到Oracle数据库");
        return 1;
    }
}
